package cc.yugu.yhdw.common.domain.basic;

import cc.yugu.yhdw.common.domain.IntIdEntity;
import cc.yugu.yhdw.common.entity.json.DateTimeSerializer;
import org.codehaus.jackson.map.annotate.JsonSerialize;

import java.util.Date;

/**
 * 客户押金设置
 *
 * @Date:Created in 2018/8/1 14:16
 * @Author:
 * @Modified By: zxj 2018/8/1 14:16
 */
public class CustomerForegift extends IntIdEntity {

    /* 继承int主键 */
    Integer agentId;       // 运营商id
    Integer agencyId;      // 代理商id
    Integer forgiftMoney;  // 客户押金（分）
    Integer status;        // 状态（1为启用,0为禁用-默认）
    String notes;          // 备注
    Date updateTime;       // 更新时间
    Date createTime;       // 创建时间

    /* 代理商名称和运营商名称(查询时使用）(构造方法是否带这个两个属性需要考虑）*/
    String agentName;
    String agencyName;

    public Integer getAgentId() {
        return agentId;
    }

    public void setAgentId(Integer agentId) {
        this.agentId = agentId;
    }

    public Integer getAgencyId() {
        return agencyId;
    }

    public void setAgencyId(Integer agencyId) {
        this.agencyId = agencyId;
    }

    public Integer getForgiftMoney() {
        return forgiftMoney;
    }

    public void setForgiftMoney(Integer forgiftMoney) {
        this.forgiftMoney = forgiftMoney;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }
    @JsonSerialize(using = DateTimeSerializer.class)
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    @JsonSerialize(using = DateTimeSerializer.class)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getAgentName() {
        return agentName;
    }

    public void setAgentName(String agentName) {
        this.agentName = agentName;
    }

    public String getAgencyName() {
        return agencyName;
    }

    public void setAgencyName(String agencyName) {
        this.agencyName = agencyName;
    }
}
